package cn.devices.service;

import cn.devices.TbDmDto;
import cn.devices.entity.TbDm;
import cn.devices.model.TbDmModel;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 部门表 服务类
 * </p>
 *
 * @author 秋水浮萍
 * @since 2021-02-07
 */
public interface TbDmService {
    int tbDmAdd(TbDm tbDm);

    int tbDmDeleteFalse(String depCode);

    int tbDmDeleteTrue(String depCode);

    int tbDmUpdate(TbDmDto dto);

    int countDmName(String depCodeOriginal, String depName);

    int count(String depCode, String depName);

    PageInfo<TbDm> tbDmList(int pageIndex, int pageSize);

    List<TbDmModel> list();

    TbDm tbDmSelect(String depCode);

    int d();
}
